import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import { setupStore } from './store'

import 'normalize.css'
import './assets/css/base.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import { globalRegister } from '@/global/index'

import * as ElIcons from '@element-plus/icons'

const app = createApp(App)

for (const name in ElIcons) {
  app.component(name, (ElIcons as any)[name])
}

setupStore()

app.use(globalRegister)
app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
